package com.ls.lserp.common.dynamicsource;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Aspect
@Order(value = 1)
@Component
public class DataSourceAspect {

	// 方法执行前
	@Around("execution(* com.ls.lserp.modules.order.service..*(..))")
	public void before(JoinPoint point) {
		Object target = point.getTarget();
		String methodName = point.getSignature().getName();

		System.out.println("methodName-------------------------------------" + methodName);

	}
}